import service from "@/utils/request";
//假期余额
export function Holiday( payload = {} ){
    return service.get('/Holiday',{ params: payload })
}
//假期余额详情
export function Holidaylimit( payload = {} ){
    return service.get('/Holidaylimit',{ params: payload })
}
//事假假期类型
export function shijiatype( payload = {} ){
    return service.get('/shijiatype',{ params: payload })
}
//婚假假期类型
export function hunjiajiatype( payload = {} ){
    return service.get('/hunjiajiatype',{ params: payload })
}
//产假假期类型
export function chanjiatype( payload = {} ){
    return service.get('/chanjiatype',{ params: payload })
}
//调休假期类型
export function tiaoxiutype( payload = {} ){
    return service.get('/tiaoxiutype',{ params: payload })
}
//病假假期类型
export function bingjiatype( payload = {} ){
    return service.get('/bingjiatype',{ params: payload })
}
//其他假期类型
export function qitatype( payload = {} ){
    return service.get('/qitatype',{ params: payload })
}
//年假假期类型
export function nianjiatype( payload = {} ){
    return service.get('/nianjiatype',{ params: payload })
}
//首页签到人数块
export function Homeqiandao( payload = {} ){
    return service.get('/Homeqiandao',{ params: payload })
}
//新增年假规则
export function nianjiatype_add( payload = {} ){
    return service.post('/nianjiatype', payload )
}
//新增事假规则
export function shijiatype_add( payload = {} ){
    return service.post('/shijiatype', payload )
}
//新增婚假规则
export function hunjiajiatype_add( payload = {} ){
    return service.post('/hunjiajiatype', payload )
}
//新增产假规则
export function chanjiatype_add( payload = {} ){
    return service.post('/chanjiatype', payload )
}
//新增调休规则
export function tiaoxiutype_add( payload = {} ){
    return service.post('/tiaoxiutype', payload )
}
//新增病假规则
export function bingjiatype_add( payload = {} ){
    return service.post('/bingjiatype', payload )
}
//新增其他规则
export function qitatype_add( payload = {} ){
    return service.post('/qitatype', payload )
}
// 删除年假规则
export function nianjiatype_delete( payload:any = {} ){
    return service.delete('/nianjiatype/'+payload, payload )
}
// 删除事假规则
export function shijiatype_delete( payload:any = {} ){
    return service.delete('/shijiatype/'+payload, payload )
}
// 删除婚假规则
export function hunjiajiatype_delete( payload:any = {} ){
    return service.delete('/hunjiajiatype/'+payload, payload )
}
// 删除产假规则
export function chanjiatype_delete( payload:any = {} ){
    return service.delete('/chanjiatype/'+payload, payload )
}
// 删除调休规则
export function tiaoxiutype_delete( payload:any = {} ){
    return service.delete('/tiaoxiutype/'+payload, payload )
}
// 删除病假规则
export function bingjiatype_delete( payload:any = {} ){
    return service.delete('/bingjiatype/'+payload, payload )
}
// 删除其他规则
export function qitatype_delete( payload:any = {} ){
    return service.delete('/qitatype/'+payload, payload )
}